<!DOCTYPE html>
<html>
<head>
    @include('layouts.admin-common-head')
    <link rel="stylesheet" href="{{ asset('plugins/iCheck/square/blue.css') }}">
    @yield('style')
</head>
<body class="hold-transition skin-blue sidebar-mini" onload="IFrameResize()">
<section class="content" id="app">
    <div class="row">
        <div class="col-md-12">
            <div class="box">

                <div class="box-header with-border">
                    <h3 class="box-title">{{ isset($metaTitle) ? $metaTitle : '' }}</h3>
                </div>

                <div class="box-body">
                    {{ Form::open(['url'=>isset($postUrl) ? $postUrl : '', 'method'=>'post', 'class'=>'form-horizontal ajax-form']) }}

                    @yield('content')

                    <div class="col-sm-8 col-sm-offset-1">
                        <div class="form-group">
                            <input type="hidden" name="action" value="{{ isset($action) ? $action : '' }}">
                            <button type="button" class="btn btn-default pull-left" onclick="window.history.go(-1);">返 回</button>
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            <button type="submit" class="btn btn-primary">保 存</button>
                        </div>
                    </div>
                    {!! Form::close() !!}
                </div>
            </div>
        </div>
    </div>
</section>

@include('layouts.admin-common-footer')
<script src="{{ asset('plugins/iCheck/icheck.min.js') }}"></script>
<script>
    $(function () {
        $('input').iCheck({
            checkboxClass: 'icheckbox_square-blue',
            radioClass: 'iradio_square-blue',
            increaseArea: '20%' // optional
        });
    });
</script>
@yield('script')
</body>
</html>